<?php

namespace Library\Checker;

class UrlChecker implements \Library\Checker {

	public static function check( $url ) {
		$infos = parse_url( $url );
		if( $infos === false ) {
			return 'Invalid url';
		}
		if( gethostbyname($infos['host']) == '127.0.0.1' ) {
			return 'Local url';
		}
		return true;
	}
}
